<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 
<html>
  <head>
      <title>video:mix:xfader</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link rel="stylesheet" href="nbdocs:/net/neilcsmith/praxis/live/help/docs/help.css" type="text/css">
  </head>
  <body>
    <h1>video:mix:xfader</h1>
    <p>Cross fade between two video signals, using the blend mode set.</p>
    <p>Available blend modes are <code>Normal, Add, Difference, BitXor</code></p>
    <h2>Ports</h2>
   
    <table border="1" cellpadding="5" cellspacing="0">
        <thead>
            <tr>
                <th>ID</th>
                <th>Type</th>
                <th>Direction</th>
                <th>Values</th>
                <th>Description</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td><b>in-1</b></td>
                <td>video</td>
                <td>in</td>
                <td></td>
                <td>First video input.</td>
            </tr>
            <tr>
                <td><b>in-2</b></td>
                <td>video</td>
                <td>in</td>
                <td></td>
                <td>Second video input.</td>
            </tr>
            <tr>
                <td><b>out</b></td>
                <td>video</td>
                <td>out</td>
                <td></td>
                <td>Video output.</td>
            </tr>
            <tr>
                <td><b>mode</b></td>
                <td>control</td>
                <td>in</td>
                <td>string(from blend modes)</td>
                <td>Blend mode to use during cross fade.</td>
            </tr>
            <tr>
                <td><b>mix</b></td>
                <td>control</td>
                <td>in</td>
                <td>number(0..1)</td>
                <td>Mix amount (0 all <code>in-1</code>, 1 all <code>in-2</code></td>
            </tr>
        </tbody>
    </table>
    
    <h2>Controls</h2>
    
    <table border="1" cellpadding="5" cellspacing="0">
        <thead>
            <tr>
                <th>ID</th>
                <th>Type</th>
                <th>Input</th>
                <th>Output</th>
                <th>Default</th>
                <th>Description</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td><b>force-alpha</b></td>
                <td>property</td>
                <td>boolean</td>
                <td></td>
                <td>false</td>
                <td>Force <code>src</code> to have an alpha channel, even if output 
                    doesn't (defaults to same as output).</td>
            </tr>
            <tr>
                <td><b>mode</b></td>
                <td>property</td>
                <td>string(from blend modes)</td>
                <td></td>
                <td>Normal</td>
                <td>Blend mode to use during cross fade.</td>
            </tr>
            <tr>
                <td><b>mix</b></td>
                <td>property</td>
                <td>number(0..1)</td>
                <td></td>
                <td>1</td>
                <td>Mix amount (0 all <code>in-1</code>, 1 all <code>in-2</code></td>
            </tr>
        </tbody>
    </table>
    
  </body>
</html>
